// @Author EthanScriptOn
// @Desc
package pool

// PanicRejectStrategy Rejection policy when the task cannot be processed - resubmit
type ReuseRejectStrategy struct {
}

func GenerateReuseRejectStrategy() *ReuseRejectStrategy {
	return new(ReuseRejectStrategy)
}

func (r *ReuseRejectStrategy) Reject(task Task, workerPool *WorkerPool) {
	_ = workerPool.Submit(task)
	return
}
